package pattern.abstractfactory.demo1;

public class ColorFactory extends AbstractFactory {
    @Override
    public Color getColor(String color) {
        switch (color){
            case "blue":
                return new Blue();
            case "green":
                return new Green();
            case "red":
                return new Red();
            default:
                return null;
        }
    }

    @Override
    public Shape getShape(String shape) {
       return null;
    }
}
